package com.sx.user.utils;

import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;

/**
 * @author shengx
 * @date 2020/5/16 22:19
 */
public class TokenUtils {
    private static String SECRET_KEY="123456789";
    public static String getToken(String email){
        String token = "";
        token = JWT.create().withAudience(email)
                .sign(Algorithm.HMAC256(SECRET_KEY));
        return token;
    }
}
